#include "syn6288.h"
#include "USART1.h"
#include "string.h"
uint8_t Frame_Info[4000] = {0};
 void SYN_FrameInfo_8(uint8_t Music, uint8_t *HZdata)
{
    
    uint16_t HZ_Length;
    HZ_Length = strlen((char*)HZdata); 			
		HZ_Length += 2;
    Frame_Info[0] = 0xFD; 			
    Frame_Info[1] = 0x00; 			
    Frame_Info[2] = (uint8_t)HZ_Length; 	
    Frame_Info[3] = 0x01; 			
    Frame_Info[4] = 0x05; 
 
    memcpy(&Frame_Info[5], HZdata, HZ_Length);
    USART1_tx_data(Frame_Info, 5 + HZ_Length - 2);

}

void SYN_FrameInfo(uint8_t Music, uint8_t *HZdata)
{
    uint8_t Frame_Info[2048];
    uint16_t HZ_Length;
    HZ_Length = strlen((char*)HZdata); 			
	HZ_Length += 2;
    Frame_Info[0] = 0xFD; 			
    Frame_Info[1] = (uint8_t)(HZ_Length >> 8); 			
    Frame_Info[2] = (uint8_t)HZ_Length; 	
    Frame_Info[3] = 0x01; 			
    Frame_Info[4] = 0x05; 
 
    memcpy(&Frame_Info[5], HZdata, HZ_Length);
    USART1_tx_data(Frame_Info, 5 + HZ_Length - 2);

}
 
void YS_SYN_Set(uint8_t *Info_data)
{
  uint8_t Com_Len;
  Com_Len = strlen((char*)Info_data);
  USART1_tx_data(Info_data,Com_Len);
}
